/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.presidenciales.bd;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.

/**
 *
 * @author FREDY
 */
import java.sql.SQLException;/**
 *
 * @author FREDY
 */
public class Conexion {
    private static MysqlDataSource mysql;
    
    public static Connection conexion;
    
    
    
    public static void conexionEspecifica(String server, String bd, String user, String pass) throws SQLException{
        mysql = new MysqlDataSource();
        
        mysql.setServerName(server);
        mysql.setDatabaseName(bd);
        mysql.setUser(user);
        mysql.setPassword(pass);
        
        conexion = mysql.getConnection();
    }
}
